<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>
<link href="__PUBLIC__/Admin/images/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
  function allCkeckF(){
   var myValue;
   var f = document.form1;
   if(f.allCheck.checked == true){
       myValue = true;
   }else{
       myValue = false; 
   }
   if(f.checkID)
   {
      if(f.checkID.length){
          for(i=0;i<f.checkID.length;i++){
              f.checkID[i].checked = myValue;
          }
      }else{
          f.checkID.checked = myValue;
      }
    }
  } 

  function checkForm()
  {
        var o = document.form1;
        var nTmpTag = 0;
        var tmpStr = "";
        if(o.checkID){
           if(o.checkID.length){
               for(i=0;i<o.checkID.length;i++){
                    if(o.checkID[i].checked){
                         nTmpTag=1;
                         tmpStr = tmpStr + o.checkID[i].value + ",";
                         o.checkCodes.value = tmpStr;
                    }
               }
            }else{
                if(o.checkID.checked){
                     nTmpTag = 1;
                     tmpStr = o.checkID[i].value
                     o.checkCodes.value = tmpStr;
                }
            }
        }
        if(nTmpTag==0)
        {
            alert("请选择要操作的记录");
            return false;
        }
  }
</script>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="__PUBLIC__/Admin/images/mail_leftbg.gif"><img src="__PUBLIC__/Admin/images/left-top-right.gif" width="17" height="29" /></td>
    <td width="100%s" height="29" valign="top" background="__PUBLIC__/Admin/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">商品管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="__PUBLIC__/Admin/images/mail_rightbg.gif"><img src="__PUBLIC__/Admin/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="__PUBLIC__/Admin/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
      <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="13" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top">
            <form name="form1" action="__URL__/relactionAdd" method="POST" >
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td class="left_txt">当前位置：商品关联 -> {$goodsName}</td>
              </tr>
              <tr>
                <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                  <tr>
                    <td></td>
                  </tr>
                </table></td>
              </tr>       
              <tr>
                <td>
                  <table width="100%" height="40" border="0" cellpadding="0" cellspacing="0">
                    <tr class="nowtable">
                      <td class="left_bt2" align="center"><input type='checkbox' name='allCheck' id='allCheck' onclick="allCkeckF()"></input>全选</td>
                      <td class="left_bt2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;商品图片</td>
                      <td class="left_bt2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;商品名称</td>
                      <td class="left_bt2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;商品所属明星</td>
                      <td class="left_bt2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;所属分类</td>
                      <td class="left_bt2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;商品价格</td>
                      <td class="left_bt2" align="center">&nbsp;&nbsp;&nbsp;&nbsp;链接地址</td>
                    </tr>
                    <volist name="list" id="vo" mod="2">  
                    <tr <eq name="mod" value="1">bgcolor="#f2f2f2"</eq> > 
                      <td height="40" class="left_txt" align="center"><input type='checkbox' name='checkID' value="{$vo.goods_code}"></input></td>   
                      <td height="40" class="left_txt" align="center"><img src="__PUBLIC__/Uploads/{$SessionUame}/64{$vo.goods_photo_add}" width="40" hieght="40" ></td> 
                      <td height="40" class="left_txt" align="center">{$vo.goods_name}</td>      
                      <td height="40" class="left_txt" align="center">{$vo.star_name}</td>
                      <td height="40" class="left_txt" align="center">{$vo.class_name}</td>
                      <td height="40" class="left_txt" align="center">{$vo.goods_price}</td>
                      <td height="40" class="left_txt" align="center"><a href="http://{$vo.goods_path}" target="_blank">{$vo.goods_path|substr=0,30}</a></td>
                    </tr>
                  </volist>
                  </table> 
                </td>
              </tr>
              <tr>
                <input name="goodsCode" type="hidden" value="{$goodsCode}">
                <input name="checkCodes" type="hidden"> 
                <td class="left_txt" align="right"><input type="submit" value="确认关联" name="B1" onclick="return checkForm()"/>&nbsp;&nbsp;&nbsp;&nbsp;{$page}&nbsp;&nbsp;&nbsp;&nbsp;</td>
              </tr>
            </table>
            </form>
          </td>
        </tr>
      </table>
    </td>
    <td background="__PUBLIC__/Admin/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="__PUBLIC__/Admin/images/mail_leftbg.gif"><img src="__PUBLIC__/Admin/images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="__PUBLIC__/Admin/images/buttom_bgs.gif"><img src="__PUBLIC__/Admin/images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="__PUBLIC__/Admin/images/mail_rightbg.gif"><img src="__PUBLIC__/Admin/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>

</body>
